package java_DesignPattern.CreatorPattern.SingletonPattern.lazy.method3;

/**
 * 测试类
 */
public class Test {

    public static void main(String[] args) {

        //获取单例实例
        Singleton singleton = Singleton.getInstance();
        Singleton instance = Singleton.getInstance();

        //判断两次获取的实例是否相同
        System.out.println(singleton == instance); //true
    }
}
